package com.mycompany.crm.exceptions;

/**
 * 自定义时间格式异常
 * @author jy
 * @version 1.0
 */
public class DateFormatException extends RuntimeException {
    private Integer code = 300;
    private String msg="日期格式异常!";

    public DateFormatException() {
        super("日期格式异常");
    }

    public DateFormatException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public DateFormatException(Integer code) {
        super("日期格式异常!");
        this.code = code;
    }

    public DateFormatException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
